package cn.qyd;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.PrintStream;

/**
 * @author 邱运铎
 * @date 2024-03-21 15:06
 */
public class Demo04 {
    public static void main(String[] args) throws IOException {
        DataOutputStream dataOutputStream = new DataOutputStream(System.out);
        dataOutputStream.writeUTF("Hello");
        dataOutputStream.flush();
        dataOutputStream.close();
        PrintStream printStream = new PrintStream(System.out);
        printStream.println("Hello World!!!");
        printStream.flush();
        printStream.close();
    }
}
